package wwj.service;

import wwj.bean.User;
import wwj.dao.UserDao;

public class LoginService {
    UserDao userDao=new UserDao();
    public User checkLogin(User user){
        User user_final = userDao.checkUser(user);
        return user_final;
    }

    public String enroll(User user) {
        return userDao.insertUser(user);
    }
    public Boolean checkUsr(String usr){
        return userDao.selectByUsername(usr);
    }
}
